package com.party.product.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.party.domain.SiteCategory;

/**
 * 
 * @author Caizhf
 * @date 2017年8月31日上午11:51:25
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: </p>
 *
 */
public interface SiteCategoryMapper {

	int countList();

	List<Integer> preparedPage(@Param("pageStart")int pageStart, @Param("pageSize")int pageSize);

	List<SiteCategory> list(@Param("ids") List<Integer> ids);

	SiteCategory findById(@Param("soid")int soid);

	Integer save(SiteCategory siteCategory);

	Integer update(SiteCategory siteCategory);

	List<Integer> listAllSiteIdsByCategoryId(Integer soid);

	Integer deleteById(Integer soid);

	Integer removeCategoryForeignKeyByIds(@Param("ids") List<Integer> ids);

	Integer updateSequenceById(@Param("soid")int soid, @Param("sequence")int sequence);

}
